﻿using ClientAppraise.ViewModels.Validator;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClientAppraise.ViewModels.Pages.Users.Org
{
    public partial class AdminTestViewModel : MyObservableValidator
    {
        [ObservableProperty]
       // [NotifyDataErrorInfo]
        [ServerError]
        [ValidatorCode]
        private string verification = "";
        [ObservableProperty]
        [ServerError]
        [UserName]
        private string userName = "zhouxinadmin";

        [RelayCommand]
        private void OnSubmit()
        {
            //App.GetRequiredService<WindowsProviderService>()?.ShowAsMain<MainWindow>();


            //var asdf = window.aaa.GetBindingExpression(TextBox.TextProperty);
            ValidateAllProperties(true);



            return;
        }
    }
}
